
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '发票信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'fpbh_1073db46_g5vn',
        name: "{{fpbh_1073db46_g5vn}}",
        binding: 'fpbh',
        updateOn: 'blur',
        defaultI18nValue: '发票编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fpbh: FormControl;

    @NgFormControl({
        id: 'fplx_d1eb66b7_ncgy',
        name: "{{fplx_d1eb66b7_ncgy}}",
        binding: 'fplx',
        updateOn: 'blur',
        defaultI18nValue: '发票类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fplx: FormControl;

    @NgFormControl({
        id: 'fpbz_572cb03e_iuh7',
        name: "{{fpbz_572cb03e_iuh7}}",
        binding: 'fpbz',
        updateOn: 'blur',
        defaultI18nValue: '发票备注',
    })
    fpbz: FormControl;

}